//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class ChartUsedAxesSetsRecord : ChartBiffRecord
    {
        #region AxisGroupsPresent enum

        public enum AxisGroupsPresent : ushort
        {
            Primary = 1,
            PrimaryAndSecondary = 2
        }

        #endregion

        private AxisGroupsPresent cAxes;

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.AxesUsed; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write((ushort) cAxes);
        }

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            cAxes = (AxisGroupsPresent) context.ReadUInt16();
        }
    }
}